<? global $FullUrl, $lg, $product, $products_anews, $product_comments, $videos, $certificates, $product_id,$img_products; ?>

<div class="centerColumn" id="productGeneral">
  <div class="add-top-detail">
    <div class="add-price-detail">
      <ul class="add-price-buy">
        <li class="add-price">
          <?=$product["price"]?>
          VNĐ</li>
        <a href="#" onclick="location.href='<?php echo $FullUrl; ?>/index.php?do=cart&act=add&id=<?=$productActive['id']; ?>&lg=<?=$lg?>&sl=1'"><li class="add-buy">Mua</li></a>        
      </ul>
      <div class="add-share">
        <p style=" text-align:center; margin-bottom:10px;"><img src="images/detail/share.png" /></p>
        <p style=" text-align:center; margin-bottom:10px;"><img src="images/detail/link.png" /></p>
      </div>
    </div>
    <div class="add-silder-detail">
      <div id="gallery" class="ad-gallery">
        <div class="ad-image-wrapper"> </div>
        <div class="ad-nav">
          <div class="ad-thumbs">
          <?
          	global $img_products;
			//print_r($img_products);
			//echo count($img_products);
			//echo "id san pham: ".$product_id;
			
		  ?>
            <ul class="ad-thumb-list">
            	<?
                	for($i = 0; $i < count($img_products); $i++)
					{
						
						$img_product = $img_products[$i];
						$img = $FullUrl .'/' .GetImage($img_product['link']);
						$url = $img_product['url'];
				?>
              <li> <a href="<?=$img?>"> <img src="<?=$img?>" class="image0"> </a> </li>
              	<?
					}
				?>             
            </ul>
           
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="add-bottom-deatal">
    <ul class="add-tab-link">
      <li><a id="link1" href="#">Tổng Quát</a></li>
      <li><a id="link2" href="#">Chi Tiết</a></li>
      <li><a id="link3" href="#">Bảng Giá</a></li>
      <li><a id="link4" href="#">Khuyến Mãi</a></li>
      <li class="add-last"><a id="link5" href="#">Đặt & Giao Hàng</a></li>
    </ul>
    <div class="add-bottom-deatal-ct">
      <div class="link1">
        <h2>Tổng Quát</h2>
        <p><?=$product['tab_1']?></p>
      </div>
      <div class="link2" style="display:none;">
        <h2>Chi Tiết</h2>
        <p><?=$product['tab_2']?></p>
      </div>
      <div class="link3" style="display:none;">
        <h2>Bảng Giá</h2>
        <p><?=$product['tab_3']?></p>
      </div>
      <div class="link4" style="display:none;">
        <h2>Khuyến Mãi</h2>
        <p><?=$product['tab_4']?></p>
      </div>
      <div class="link5" style="display:none;">
        <h2>Đặt & Giao Hàng</h2>
        <p><?=$product['tab_5']?></p>
      </div>
    </div>
  </div>
</div>

<?php Template::UserControl('CommentFB'); ?>
<!--
<? if ($products_anews) { ?>
<div class="frame">
  <div class="right-header">
    <h2>Sản phẩm cùng loại</h2>
  </div>
  <div class="content">
    <ul class="list-product">
      <? for ($i=0; $i<count($products_anews); $i++) { 
			$other_pro = $products_anews[$i];
			$img = GetImage($other_pro['img']);
			$link = GetProductLink2($other_pro, $lg);
		?>
      <li> <a class="pro-img pro-img-<?=$other_pro['num']?> tooltip" href="<?=$link?>"><img src="<?=$FullUrl.'/'.$img?>" alt="<?=$other_pro["unique_key_$lg"]?>" width="400px" height="300px"/><span class="pro-name">
        <?=$other_pro["name_$lg"]?>
        </span></a>
        <pre class="hidden">
        	<span class="name"><?=$other_pro["descs_$lg"]?></span>
		</pre>
      </li>
      <? } ?>
    </ul>
  </div>
</div>
<? } ?>-->
